/*
 * City.java
 *
 * Created on March 2, 2007, 8:50 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ge.info.domain;

import ge.ktapestry.propertyselections.ComboList;
import ge.ktapestry.propertyselections.IComboItem;
import ge.ktapestry.propertyselections.IParentComboItem;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class City implements IParentComboItem, java.io.Serializable
{
    
    /** Creates a new instance of City */
    private int cityID;
    private int capital;
    private String cityName;
    private List<IComboItem> children;
    private ComboList comboList;
    private String code;
    private String ctm;
    private String countryregion;
    private String gmtOff;
    private String gmtOffWinter;
    private Integer countryID;
    private String countryCode;
    private Integer seasonID;

    public City()
    {
        setChildren(new ArrayList<IComboItem>());
        comboList = new ComboList();
    }
    public boolean equals(Object o)
    {
        if (!(o instanceof City))
        {
            return false;
        }
        return this.getCityID() == (((City) o).getCityID());
    }
    public String getUniqueID()
    {
        return String.valueOf(cityID);
    }
    
    public String getDisplayName()
    {
        return cityName;
    }
    
    public int getCityID()
    {
        return cityID;
    }
    
    public void setCityID(int cityID)
    {
        this.cityID = cityID;
    }
    
    public String getCityName()
    {
        return cityName;
    }
    
    public void setCityName(String cityName)
    {
        this.cityName = cityName;
    }

    public String getCountryregion()
    {
        return countryregion;
    }

    public void setCountryregion(String countryregion)
    {
        this.countryregion = countryregion;
    }
    
    public int getCapital()
    {
        return capital;
    }
    
    public void setCapital(int capital)
    {
        this.capital = capital;
    }
    
    public List<IComboItem> getChildren()
    {
        return children;
    }
    
    public void setChildren(List<IComboItem> children)
    {
        this.children = children;
    }
    public ComboList getComboList()
    {
        comboList.setOptions(children);
        return comboList;
    }

    /**
     * @return the code
     */
    public String getCode()
    {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code)
    {
        this.code = code;
    }

     public String getCtm()
    {
        return ctm;
    }

    /**
     * @param code the code to set
     */
    public void setCtm(String ctm)
    {
        this.ctm = ctm;
    }

    /**
     * @return the gmtOff
     */
    public String getGmtOff()
    {
        return gmtOff;
    }

    /**
     * @param gmtOff the gmtOff to set
     */
    public void setGmtOff(String gmtOff)
    {
        this.gmtOff = gmtOff;
    }

    /**
     * @return the gmtOffWinter
     */
    public String getGmtOffWinter()
    {
        return gmtOffWinter;
    }

    /**
     * @param gmtOffWinter the gmtOffWinter to set
     */
    public void setGmtOffWinter(String gmtOffWinter)
    {
        this.gmtOffWinter = gmtOffWinter;
    }

    /**
     * @return the countryID
     */
    public Integer getCountryID()
    {
        return countryID;
    }

    /**
     * @param countryID the countryID to set
     */
    public void setCountryID(Integer countryID)
    {
        this.countryID = countryID;
    }


    public Integer getSeasonID()
    {
        return seasonID;
    }

    /**
     * @param countryID the countryID to set
     */
    public void setSeasonID(Integer seasonID)
    {
        this.seasonID = seasonID;
    }

    /**
     * @return the countryCode
     */
    public String getCountryCode()
    {
        return countryCode;
    }

    /**
     * @param countryCode the countryCode to set
     */
    public void setCountryCode(String countryCode)
    {
        this.countryCode = countryCode;
    }


}
